package com.ruoyi.project.tickets.mapper;

import java.util.List;
import com.ruoyi.project.tickets.domain.OutStock;
import com.ruoyi.project.tickets.domain.query.OutStockQuery;
import com.ruoyi.project.tickets.domain.vo.OutStockVo;
import org.apache.ibatis.annotations.Param;

/**
 * 出库记录Mapper接口
 *
 * @author 孙山伟
 * @date 2023-07-01
 */
public interface OutStockMapper
{
    /**
     * 查询出库记录
     *
     * @param id 出库记录ID
     * @return 出库记录
     */
    public OutStock selectOutStockById(Long id);

    /**
     * 查询出库记录列表
     *
     * @param outStock 出库记录
     * @return 出库记录集合
     */
    public List<OutStockVo> selectOutStockList(OutStockQuery outStock);

    /**
     * 新增出库记录
     *
     * @param outStock 出库记录
     * @return 结果
     */
    public int insertOutStock(OutStock outStock);

    /**
     * 修改出库记录
     *
     * @param outStock 出库记录
     * @return 结果
     */
    public int updateOutStock(OutStock outStock);

    /**
     * 删除出库记录
     *
     * @param id 出库记录ID
     * @return 结果
     */
    public int deleteOutStockById(Long id);

    /**
     * 批量删除出库记录
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteOutStockByIds(Long[] ids);

    List<OutStockVo> listByStockId(@Param("outStockId") Long outStockId);
}
